package beans;

import java.util.Date;

/**
 * @author roze
 *
 */
public class UserMorceau {

	private Integer populariteUser;
	private Date derniereLecture;
	private User user;
	private Morceau morceau;	
	
	
	
	/**
	 * @param populariteUser
	 * @param derniereLecture
	 * @param user
	 * @param morceau
	 */
	public UserMorceau(Integer populariteUser, Date derniereLecture, User user,
			Morceau morceau) {
		super();
		this.populariteUser = populariteUser;
		this.derniereLecture = derniereLecture;
		this.user = user;
		this.morceau = morceau;
	}



	public UserMorceau() {
		super();
	}



	/**
	 * @return la popularite utilisateur
	 */
	public Integer getPopulariteUser() {
		return populariteUser;
	}
	
	/**
	 * @param populariteUser
	 */
	public void setPopulariteUser(Integer populariteUser) {
		this.populariteUser = populariteUser;
	}
	
	/**
	 * @return la derniere lecture
	 */
	public Date getDerniereLecture() {
		return derniereLecture;
	}
	
	/**
	 * @param derniereLecture
	 */
	public void setDerniereLecture(Date derniereLecture) {
		this.derniereLecture = derniereLecture;
	}	
		
		
	/**
	 * @return l'utilisateur
	 */
	public User getUser() {
		return user;
	}


	/**
	 * @param user
	 */
	public void setUser(User user) {
		this.user = user;
	}


	/**
	 * @return le morceau
	 */
	public Morceau getMorceau() {
		return morceau;
	}


	/**
	 * @param morceau
	 */
	public void setMorceau(Morceau morceau) {
		this.morceau = morceau;
	}



	@Override
	public String toString() {
		return "UserMorceau [populariteUser=" + populariteUser
				+ ", derniereLecture=" + derniereLecture + "]";
	}	
	
}
